<?php 
	$this->load->view('header');
	$this->load->view('header_end');
?>
<div id="block_menu_banner">
	<?php 
		$this->load->view('part_view/mod_menu'); 
	?>
</div>
<div id="content">
            <div class="clear"></div>
            <div id="content-left">
               <?php 
					$this->load->view('part_view/mod_home_slide'); 
				?>

               <?php 
				$obj_menu = get_mod_section_news_home();
				$i = 0;
				$class = 'left';
				foreach($obj_menu as $menu){
				if($i%2 !=0)
					$class = 'right';
				else
					$class = 'left';
				?>
               <div class="groupbox float-<?php echo $class?>">
                  <div class="panel-title">
                     <div class="panel-h6"><a href="#"><?php echo $menu['csection_news']?></a></div>
                     <div class="panel-nav"></div>
                  </div>
                  <div class="panel-content">
					 <?php  $obj_hot = get_mod_news($menu['nid']);
					 		if(isset($obj_hot['nid'])){
					 ?>					 
                     <div class="image-content-boder image150 margin-5-5-0-5">
                        <div class="image-contnet image150">
                           <a href="<?php echo base_url().'tin-tuc/'.$obj_hot['nid']?>"><img src="<?php echo base_url().'upload/image_article/'.$obj_hot['cimage_thumb']?>"></a>
                        </div>
                     </div>
                     <p style="margin-top:-10px;"><a href="<?php echo base_url().'tin-tuc/'.$obj_hot['nid']?>"><?php echo($obj_hot['cshort_content']);?> .</a> </p>
					 <?php }?>
                     <div class="panel-content-list">
                        <ul>
							<?php 
								if(isset($obj_hot['nid'])){
								$obj_other = get_mod_news_other($menu['nid'],$obj_hot['nid']);
								foreach($obj_other as $other){
							?>						
                           <li><a href="<?php echo base_url().'tin-tuc/'.$other['nid']?>"><?php echo prefix_li().limit_str($other['ctitle'],40);?></a></li>
                           <?php }}?>
                        </ul>
                     </div>
                  </div>
               </div>
				<?php $i++; }?>

              
            </div>
            <div id="content-right">               
               <?php 
					$this->load->view('part_view/mod_right_index.php'); 
				?>
               
            </div>
            <div class="clear"></div>
         </div>
<?php 
	$this->load->view('footer');
?>
